package com.banmoon.responsible;

import cn.hutool.core.util.StrUtil;

public class Dean extends Handler{

    public Dean() {
        super("院长", null);
    }

    @Override
    public void executeRequest(LeaveRequest request) {
        if(request.getNumber()>14)
            System.out.println(StrUtil.format("{}批准了{}同学的{}天请假条", super.getName(), request.getName(), request.getNumber()));
        else
            System.out.println(StrUtil.format("{}拒绝了{}同学的{}天请假", super.getName(), request.getName(), request.getNumber()));
    }
}
